home *** CD-ROM | disk | FTP | other *** search
- Time_In
- 1.0
- (c) 1989 John W. Wulff
-
- Time_In is designed to allow the user to run a program based on a
- configured time limit. These time periods are entered on the
- command line with the lower and upper limits separated with a
- hyphen and each period separated by a space. Up to 10 time
- periods can be tested. The hours and minutes must be separated
- by a colon. For example:
-
- Time_In 03:00-04:00 11:10-12:00 15:00-15:30 21:10-23:00
-
- Time_In will set an ErrorLevel which can be tested in a batch
- file. If the current time is NOT within any of the time periods,
- the ErrorLevel will be 0. If the current time IS within one of
- the periods the program will return an ErrorLevel of 1. If NO
- time parameters are entered on the command line, then Time_In
- will return a 2. The following example represents a batch file
- for testing these ErrorLevels.
-
- Time_In 04:00-05:00 10:00-12:30
- if errorlevel 1 DoSomething
- if errorlevel 2 DoSomethingElse
-
- It's suggested that your DOS manual be consulted for a full
- discussion of batch file commands and testing of ErrorLevels if
- you don't feel up to speed on this subject.
-
- Enjoy!
-
- John W. Wulff
- Wulff Enterprises, Inc.
- 260 Terranova Drive
- Warrenton, VA 22186-9227
- (703) 349-8805
- Compuserve 71076,1255
-